package com.amit.hibernate;

import org.hibernate.SessionFactory;

import org.hibernate.cfg.Configuration;

public class CHibernateutil {
	
	static SessionFactory factory=null;
	
	public static SessionFactory  getfactory()
	
	{
		Configuration cfg=new Configuration();
		cfg=cfg.configure();
		factory=cfg.buildSessionFactory();
		
		return factory;
		
	}

}
